<div id="header" class="c">
	
	<div id="loginAndSearch">
		{!if $loginActor!}
		欢迎你，<a href="/people/{!$loginActor.actorId!}/profile" class="nickname" id="nicknameLink">{!$loginActor.nickname!}</a>&nbsp;&nbsp;&nbsp;
		<a href="/logout?rurl={!$curUrl!}" onclick="return confirm('你确定要退出登陆吗？');"/>注销</a>
		{!else!}
		<a href="/login?rurl={!$curUrl!}">登陆</a> <a href="/register?rurl={!$curUrl!}">注册</a>
		{!/if!}
		<form action="/search" method="get" onsubmit="return __ss(this);">
			<a href="/recipe/add" class="b">+ 添加菜谱</a>&nbsp;&nbsp;
			<input type="text" style="width:200px;" name="keyword" value="{!$keyword!}"/>
			<input type="submit" value="搜  索" id="search_btn"/>
		</form>
		<script type="text/javascript">function __ss(f){if(!f.keyword.value||!f.keyword.value.replace(/^\s*|\s*$/,'')){f.keyword.focus();return false;}return true;}</script>
	</div>
	<div>
		<a href="/"><img id="logo" alt="{!#SITE_NAME#!}" src="/images/logo.gif"/></a>
		<ul class="u h" id="menu">
			<li><a href="/">{!#HOME_TEXT#!}</a></li>
			<li><a href="/mykitchen">{!#MY_KITCHEN_TEXT#!}</a></li>
			<li><a href="/tags">{!#CATEGORY_TEXT#!}</a></li>
		</ul>
	</div>
</div>
<div class="c" id="main">